package com.coocaa.ops.admin.v1.dmp.util;

import com.coocaa.ops.admin.v1.dmp.biz.impl.DmpRegistryRlsInfoBizImpl;
import lombok.Setter;
import lombok.experimental.UtilityClass;
import org.springframework.util.Assert;

import java.util.List;

/**
 * @author bijiahao
 * @description
 * @date 2020/7/3 15:01
 */
@UtilityClass
public class DmpRegistryRlsUtil {

    @Setter
    private static DmpRegistryRlsInfoBizImpl dmpRegistryRlsInfoBiz;

    public static void deleteDmpRls(Integer id, String type, Integer version){
           getDmpRegistryRlsInfoBiz().deleteDmpRls(id, type, version);
    }

    public static void deleteDmpRls(List<Integer> id, String type, Integer version){
         getDmpRegistryRlsInfoBiz().deleteDmpRls(id, type, version);
    }
    public static void deleteDmpInfoBySubId(Integer id, String type) {
        getDmpRegistryRlsInfoBiz().deleteDmpBySubId(id,type);
    }


    private DmpRegistryRlsInfoBizImpl getDmpRegistryRlsInfoBiz(){
        Assert.notNull(dmpRegistryRlsInfoBiz, "DmpRegistryRlsInfoBizImpl实例不能为空");
        return dmpRegistryRlsInfoBiz;
    }


}
